import request from '@/api/base.ts'

export const getImgWithToken = async (url: string) => {
  console.log(url);
  // console.log(request);

  const { data: res } = await request({
    url: url,
    method: 'get',
    responseType: 'blob'
  });

  
  const objUrl = URL.createObjectURL(res);

  return objUrl;
}